package top.zhangjianyong.tools.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.zhangjianyong.tools.service.api.PoetService;
import top.zhangjianyong.tools.user.VerifyUser;
import top.zhangjianyong.tools.utils.ApiResponse;

/**
 * @author ： zhangjianyong
 * @date ： 2023/1/19 11:14 AM
 */
@VerifyUser(login = false)
@RestController
@RequestMapping("/poet")
public class PoetController {

    @Autowired
    private PoetService poetService;

    @PostMapping("/shi")
    public ApiResponse shi() {
        return poetService.shi();
    }

    @PostMapping("/ci")
    public ApiResponse ci(){
        return poetService.ci();
    }
}
